/******************* (C) COPYRIGHT 2022 CHU WEI TENG ***********************************************
**
**------------------ File Info ---------------------------------------------------------------------
** File name:      dwin_edit_gbk.h
** modified Date:  2022-05-10
** Last Version:   V1.0
** Descriptions: 
** 
**------------------ Modfication  log --------------------------------------------------------------
** Date       Who            Rev        Comments
----------------------------------------------------------------------------------------------------
   22/05/10  chuwt@qq.com    V1.00      created

****************************************************************************************************/
#ifndef __DWIN_EDIT_GBK_H__
#define __DWIN_EDIT_GBK_H__

#include "dwin_widget.h"

/* Public define-----------------------------------------------------------------------------------*/

/* Public typedef----------------------------------------------------------------------------------*/
typedef struct
{
    dwin_widget_t widget;
    uint8_t       gbk_len;
    char          gbk[GBK_MAX_CNT + 1];      
}dwin_edit_gbk_t;

/* Public function---------------------------------------------------------------------------------*/

dwin_widget_t* dwin_edit_gbk_create(dwin_widget_t* parent, uint16_t addr, uint16_t attr, uint16_t size);
ret_t dwin_edit_gbk_write(dwin_widget_t* edit);
ret_t dwin_multi_edit_gbk_write(dwin_widget_t** edit_arry, uint8_t count);

#endif
